package com.xyzq.hs;

import com.xyzq.hs.util.Logger;
import com.xyzq.hs.util.LoggerFactory;

public class DefaultResultSetCallBack implements ResultSetCallBack{
	
	Logger log=LoggerFactory.getLogger(DefaultResultSetCallBack.class);
	
	public Object doInResultSet(ResultSet rs) throws TSException {
		try {
			Result result=new Result();
			result.setResponseCode(rs.getResponseCode());
			result.setErrorMessage(rs.getErrorMessage());
			return result;
		} catch (Exception e) {
			throw new TSException(e.getMessage());
		}
	}

}
